<template>
  <div class="hello">
    <h2>我是hello</h2>
    <button @click="clickFn">调用方法</button>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  methods: {
    clickFn () {
      this.$store.commit('test', '学生')
    }
  }
}
</script>
